/*for-each loop in java is the enhanced version of for loop. It is introduced
 *  from JDK 5. It is used to iterate all elements of an array or Collection.
 *   - See more at: http://javaconceptoftheday.com/for-each-loop-java/#sthash.J5LvFpUC.dpuf
 * 
 * 
 * Syntax of foreach loop :-
 * 
 * for(Data_type variable : array or collection)
 * {
 * }
 * 
 */
package ForEach;
public class ForEach1 {
public static void main(String[] args) {
	String[] str = {"ram","sayam","sita","gita"};
	for(String s  : str ){
		System.out.println(s);
	}
		
}
}
